<?php

namespace App\Models;

use App\Models\traits\Morph;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Admin extends Model
{
    use HasFactory;
    
    protected $fillable = [
		'name',
	    'nickname',
	    'password',
	    'avatar'
    ];
    
    public function chatUser()
    {
    	return $this->morphOne(ChatUser::class, 'related_table');
    }
}
